﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Forget Password</title>
<link href="css/popup.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery-1.3.2.js"></script>
<script type="text/javascript">
function toreg() {
	parent.tb_remove();
	parent.location.href="register.aspx";
}

function sendEmaiL() {

    if (/^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/.test($("#emailTxt").val())) {

        $.post(
        "FinderPwd.aspx",
        { emailT: $("#emailTxt").val() },
        function (data) {
            if (data == null || data == "") {
                    alert("The user is not exist.");
                }
                else {
                    alert("Email has sended，please receive，password has beed modified.");
                }
            }
        );
    }
    else {
        alert("Please input correct email.");
    }
}
</script>
</head>
<body>
<div id="loginmsg">
	<div class="close"><a href="#" onclick="parent.tb_remove();"><img src="images/icon_pop_close.gif" alt="" /></a></div>
        <div id="forget">
        <div class="title"><img src="images/pop_title_forget.gif" alt="" /></div>    	
        <form action="" method="post" id="forgetform">
        	<ul>
            	<li><input name="" id="emailTxt" type="text" /></li>
            </ul>
            <ol>
                <li><a href="#" onclick="toreg();">Register</a></li>
            </ol>
            <div class="btn"><input name="" type="button" onclick="sendEmaiL()" value="" /></div>
        </form>
    </div>
</div>
</body>
</html>
